import request from '@/utils/request'

// 商品相关：
// 获取-商品详情
export const getGoodsDetailService = (id) =>
  request.get('/goods', {
    params: {
      id,
    },
  })
// 获取-热榜商品
export const getHotGoodsService = ({ id, type, limit = 10 }) =>
  request.get('/goods/hot', {
    params: {
      id,
      type,
      limit,
    },
  })
